package com.todod.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.todod.dto.UserDto;
import com.todod.entity.QueryEntry;
import com.todod.model.User;

@Mapper
public interface UserMapper extends BaseMapper<User> {

	// 获取用户列表
	IPage<UserDto> getList(Page<UserDto> page, @Param("queryEntry") QueryEntry queryEntry);

	// 获取用户列表
	IPage<UserDto> getDnameList(Page<UserDto> page, @Param("queryEntry") QueryEntry queryEntry);

	IPage<UserDto> getCompanyUserList(Page<UserDto> page, @Param("queryEntry") QueryEntry queryEntry);
}
